<input type="hidden" name="dir" value="{$values.dir}" />
{if is_array($values)}
	{foreach from=$values item="file"}
		<div style="float:left;width:70px;">
		Name: 
		</div>
		<div style="float:left;width:300px;">
			<input type="text" name="tpl_name[]"> {$file.path}{$file.name}<br />
			<input type="hidden" name="tpl_dir[]" value="{$file.path}" />
			<input type="hidden" name="tpl_file[]" value="{$file.name}" />
		</div>
		<br style="clear:both;" />
	{/foreach}
{/if}